/**
 * 
 */
var writeBtn, repleDeleteBtn, modifyBtn, deleteBtn, visitBtn, repleWriteBtn;
function general(){
	
	writeBtn=document.getElementById('writeBtn');
	if(writeBtn != null){
		writeBtn.onclick=function(){
			location.href='?inpage=../visitMain.jsp';
			//방명록글이 올라가는 로직
		}
	}
	repleWriteBtn=document.getElementById('repleWriteBtn');
	if(repleWriteBtn != null){
		repleWriteBtn.onclick=function(){
			location.href='?inpage=../visitMain.jsp&no=5';
			//댓글달고난후결과로직
		}
	}
	repleDeleteBtn=document.getElementById('repleDeleteBtn');
	if(repleDeleteBtn != null){
		repleDeleteBtn.onclick=function(){
			location.href='?inpage=../visitMain.jsp';
			//댓글이 삭제되는 로직
		}
	}
	modifyBtn=document.getElementById('modifyBtn');
	if(modifyBtn != null){
		modifyBtn.onclick=function(){
			location.href='?inpage=../visitMain.jsp';
			//글이 수정되는 로직
		}
	}
	deleteBtn=document.getElementById('deleteBtn');
	if(deleteBtn != null){
		deleteBtn.onclick=function(){
			location.href='?inpage=../visitMain.jsp';
			//글이 삭제되는 로직
		}
	}
	visitBtn=document.getElementById('visitBtn');
	if(visitBtn != null){
		visitBtn.onclick = function(){
			location.href='?inpage=../visitMain.jsp';
		}
	}
}

function writeInit(){
	general();
}
function repleWriteInit(){
	general();
}
function repleDeleteInit(){
	general();
}
function modifyInit(){
	general();
}
function deleteInit(){
	general();
}
function visitInit(){
	general();
}
